// 将request.js整体导入
import request from './request'
// 按需导出每个请求，也就是按需导出每个api
// 验证码
export const getPhoneCode = (params) => request.post('/api/sms/getCode', params);

// 邮箱验证码

export const getEmailCode = (params) => request.post('/api/email/sendMail', params);

// 账号密码登录

export const passwordLogin = (params) => request.post('/api/user/loginByPwd', params);

// 手机短信登录

export const phoneCodeLogin = (params) => request.post('/api/user/loginBySms', params)

// 手机号注册

export const phoneRegister = (params) => request.post('/api/user/registerByPhone', params);

// 邮箱注册

export const emailRegister = (params) => request.post('/api/user/registerByEmail', params);

// 手机号找回密码
export const phoneRetrieve = (params) => request.post('/api/user/retrievePasswordByPhone', params);

// 通过邮箱找密码
export const emailRetrieve = (params) => request.post('/api/user/retrievePasswordByEmail', params);

// 判断用户是否存在
export const checkUserExist = (params) => request.post('/api/user/checkUserExist', params);

// 赛事信息
export const matchs = (params) => request.post('/api/ma/query/matchs', params);

// qq登录
export const qqLogin = (params) => request.get('/api/qq/oauth/code', params);

// 微信登录
export const weixinLogin = (params) => request.get('/api/wx/get/code', params)

// 查询报名信息 
export const applicationInfo = (params) => request.post('/api/ma/query/apply/info', params);

// 报名
export const apply = (params) => request.post('/api/ma/apply', params);

// OSS授权
export const OSSPolicy = (params) => request.post('/api/oss/policy', params);

// 用户信息
export const userInfo = (params) => request.post('/api/user/personal/center', params);

// 保存用户信息
export const saveUserInfos = (params) => request.post('/api/user/basic/save', params);

// 修改手机号
export const bind = (params) => request.post('/api/user/bind', params);

// 删除报名信息

export const delApplication = (params) => request.post('/api/ma/del', params);

//新闻通知
export const news = (params) => request.post('/api/new/page/list', params);

// 微信解绑
export const wxUnbind = (params) => request.post('/api/wx/unbind', params);

// 轮播图

export const banner = (params) => request.post('/api/slideshow/list', params)